package com.qzsoft.system.modules.sys.notice.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * (SysNoticeFile)表实体类
 *
 * @author sdmq
 * @since 2020-08-17 15:30:43
 */
@ApiModel(value ="")
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("sys_notice_user")
public class SysNoticeUserEntity extends Model<SysNoticeUserEntity> {
    private static final long serialVersionUID = 587820335411192380L;
    /**
    *id主键主键
    */
    @TableId
    @ApiModelProperty(value = "id主键")
    private String id;
    /**
     * noticeId
     */
    @ApiModelProperty(value = "noticeId")
    private String noticeId;

    /**
     * deptId
     */
    @ApiModelProperty(value = "deptId")
    private String deptId;

    /**
     * userId
     */
    @ApiModelProperty(value = "userId")
    private Long userId;

    /**
     *删除标识
     */
    @ApiModelProperty(value = "阅读标识")
    private Boolean readFlag;

    /**
     *删除标识
     */
    @ApiModelProperty(value = "删除标识")
    private Integer hasDelete;

    /**
     *创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createDate;

    /**
     *创建者
     */
    @ApiModelProperty(value = "创建者")
    @TableField(fill = FieldFill.INSERT)
    private Long creator;
    /**
     *更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.UPDATE)
    private Date updateDate;

    /**
     *更新者
     */
    @ApiModelProperty(value = "更新者")
    @TableField(fill = FieldFill.UPDATE)
    private Long updater;

    /**
     * delFlag
     */
    @ApiModelProperty(value = "delFlag")
    private String delFlag;


    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}